package com.hhsjtest.scaffold;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ScrollView;

import androidx.annotation.NonNull;

import com.hhsj.design.pullableview.scrollview.RefreshScrollViewPro;
import com.hhsjtest.scaffold.abs.ScaffoldView;


public class ScrollScaffoldView extends ScaffoldView<RefreshScrollViewPro> {

    public ScrollScaffoldView(Context context) {
        super(context);
    }

    public ScrollScaffoldView(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    public ScrollScaffoldView(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }


    @Override
    protected void scrollToTop() {
        scrollTo(0,0);
    }

    public void addContentView(View view) {
        contentScrollView.addViewToContent(view);
    }

    public void setMainContentView(@NonNull View view) {

    }

    public ScrollView getScrollView() {
        return contentScrollView;
    }
}
